package com.apes.scm.masterdata.party.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.masterdata.party.model.Party;
import com.apes.scm.masterdata.party.model.PartyIdentification;

import java.util.List;

/**
 * @author HuJianlin
 * @create 2018-03-20 16:07
 */
public interface PartyIdentificationRepository extends CustomRepository<PartyIdentification, Long> {
    List<PartyIdentification> findByPartyIdTypeAndIdValue(String partyIdType, String idValue);

    PartyIdentification findFirstByPartyIdTypeAndIdValue(String partyIdType, String idValue);

    List<PartyIdentification> findByPartyAndPartyIdType(Party party,String partyIdType);

}
